/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package main

import (
	"vpom_-system/core"
	"vpom_-system/global"
	"vpom_-system/initialization"
)

func main() {
	global.Config = core.InitConf()
	//fmt.Println(global.Config.Mongo)
	global.Log = core.InitLogger()
	global.DB = initialization.InitGorm()
	global.MongoClient = initialization.InitMongo()
	defer initialization.CloseMysql(global.DB)
	global.ESClient = initialization.ConnectEs()

	//todo cmd.Execute()

	core.RunServer()
}
